package io.renren.modules.offlinestudy.dao;

import io.renren.common.dao.BaseDao;
import io.renren.common.utils.Query;
import io.renren.modules.offlinestudy.entity.SubscribeEntity;
import io.renren.modules.offlinestudy.entity.SubscribedateEntity;
import io.renren.modules.onlinestudy.entity.XcBmEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author zhubsh
 * @email sd_zhusbh@163.com
 * @date 2018-10-31 09:49:39
 */
public interface SubscribedateDao extends BaseDao<SubscribedateEntity> {

    List<SubscribedateEntity> queryObjects(Object id);

    Integer selSubscribeBystartDate(SubscribedateEntity subscribedateEntity);

    Integer selSubscribeByendDate(SubscribedateEntity subscribedateEntity);

    SubscribeEntity querySubcribeObject(Integer id);

    List<SubscribeEntity> querySubscribeList(Map<String, Object> map);

    int querySubscribeTotal(Map<String, Object> map);

    void subscribeSave(SubscribeEntity subscribe);

    void subscribeUpdate(SubscribeEntity subscribe);

    void subscribeDeleteBatch(Integer[] ids);

    List<SubscribedateEntity> selectValidateSubscribeDate(@Param("date") String date, @Param("studytype") String studytype);

    List<Map<String,Object>> selSubscribeExcel(Map<String, Object> map);

    XcBmEntity selXyxx(String userid);

}
